﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.TeamFoundation.Build.Client;

namespace HybridLab.Workflow.Activities.UI
{
	internal class BuildDetailEx
	{
		public string Name { get; set; }
		public IBuildDetail Build { get; set; }
		public bool IsLatestOption { get; set; }

		internal BuildDetailEx(IBuildDetail buildDetail)
		{
			Build = buildDetail;
			if (this.Build == null)
			{
				Name = "<Latest>";
				IsLatestOption = true;
			}
			else
			{
				Name = this.Build.BuildNumber;
			}
		}
	}
}
